package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.DownFile;
import com.nbsaas.boot.cms.api.domain.response.DownFileResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* -实体对象转化成响应对象
*/

public class DownFileResponseConvert  implements Converter<DownFileResponse,DownFile> {

    @Override
    public DownFileResponse convert(DownFile source) {
        DownFileResponse  result = new  DownFileResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

